#include(../iov_flower/iov_flower.pri)

QT       += core gui sql

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS


TEMPLATE = app
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    Input/input.cpp \
    Login/login.cpp \
    Total/total.cpp \
    log/log.cpp \
    main.cpp \
    mainwindow.cpp

HEADERS += \
    Input/input.h \
    Login/login.h \
    Total/total.h \
    log/log.h \
    mainwindow.h

FORMS += \
    Input/input.ui \
    Login/login.ui \
    Total/total.ui \
    mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

#设置编译文件路径
DESTDIR += $$PWD/../../bin
#设置执行函数图标
RC_ICONS = $$PWD/../../bin/title.ico


##添加子工程时需要通过库的形式引入
#win32: LIBS += -L$$OUT_PWD/../../bin -lIov_Flower
#同时需要添加库的路径
INCLUDEPATH += $$PWD/../../bin



win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../bin/ -liov_flower
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../bin/ -liov_flower
else:unix: LIBS += -L$$PWD/../../bin/ -liov_flower

INCLUDEPATH += $$PWD/../iov_flower
DEPENDPATH += $$PWD/../iov_flower



win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../database/release/ -ldatabase
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../database/debug/ -ldatabase

INCLUDEPATH += $$PWD/../database
DEPENDPATH += $$PWD/../database
